//
//  SWFilterUtil.swift
//  ChildStory
//
//  Created by linhan on 16/8/29.
//  Copyright © 2016年 Aiya. All rights reserved.
//

import Foundation
import UIKit

class SWFilterUtil: NSObject
{
    //磨皮
    class func skinSmooth(_ image:UIImage) -> UIImage?
    {
        var options:[Int32] = [0, 0, 50, 2 ,4]
        let aImage = PWCPUFilterImplementation.filterCameraSelfSetup(image)
        return PWCPUFilterImplementation.filterCameraSelf(image, blurImage: aImage, options: &options)
    }
    
    
    
    
    
}
